import { req } from './base/BaseApi'

export function login(username, password) {
  return req('/api/sys/login', 'post', { username, password })
}
export function getLogin() {
  return req('/api/sys/login', 'get')
}

export function getInfo() {
  return req('/api/sys/auth/user/info', 'get')
}

export function logout() {
  return req('/api/sys/open/logout', 'post')
}
